﻿package game.alternativa {
	import flash.events.Event;
	
	public class ModelEvent extends Event {
		
		public static const MODEL_COMPLETE:String	= "model.complete";
		public static const MODEL_ERROR:String		= "model.error";
		public static const TEXTURE_COMPLETE:String	= "texture.complete";
		public static const TEXTURE_ERROR:String	= "texture.error";
		public static const PARAMS_ERROR:String		= "params.error";
		
		public var data:Object;
		
		public function ModelEvent($type:String, data:Object = null, $bubbles:Boolean = false, $cancelable:Boolean = false) {
			super($type, $bubbles, $cancelable);
			this.data = data;
		}

		public override function toString():String {
			return formatToString("ModelEvent", "data", "type", "bubbles", "cancelable");
		}

	}
}